Namespace("org.wattdepot.gdata.makahiki");

// Performs standard formatting on timestamps for the Kukui Cup.
org.wattdepot.gdata.makahiki.Timestamp = function() {

  function format(datatable, column, element) {
    // (1) Format the timestamp column as 'short'.
    var formatter = new google.visualization.DateFormat({formatType: 'short'});
    formatter.format(datatable, column);
    // (2) Add font-size : 'x-small' to the div's style.
    element.style.fontSize = 'x-small';
  }

  return {
    // Public interface to this function. 
    format : format
  };
}


